package kibahed.uni.mdp.representation;

public class Position {


	int row;
	int collum;
	
	public Position(int row, int collum) {
		this.row = row;
		this.collum = collum;
	}

	public Position(Position position) {
		row = position.getRow();
		collum = position.getCollum();
	}
	
	public int getRow() {
		return row;
	}

	public void setRow(int row) {
		this.row = row;
	}

	public int getCollum() {
		return collum;
	}

	public void setCollum(int collum) {
		this.collum = collum;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + collum;
		result = prime * result + row;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Position other = (Position) obj;
		if (collum != other.collum)
			return false;
		if (row != other.row)
			return false;
		return true;
	}

}
